#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author： 胡浩浩
# datetime： 2021/12/28 12:24 
# ide： PyCharm
from typing import List, Optional
from pydantic import BaseModel


class AssetBase(BaseModel):
    pass


class AssetCreate(AssetBase):
    pass


class Asset(AssetBase):
    id: int
    asset_name: str
    asset_code: str
    asset_type: str
    status: str
    deleted: bool
    owner_id: int
    owner_name: str
    user_id: int
    user_name: str
    create_time: str
    update_time: str

    class Config:
        orm_mode = True
